<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>泥头车企业管理</title>
</head>
<body>

<table id="corp-grids"></table>


<script type="text/javascript">
    $(document).ready(function(){
        $(".wes").click(function(){

            var id = $(this).html();
            alert("当前点击id："+id);
        });
    });
    $(document).ready(function(){
        $.ajax({
            url : '${springMacroRequestContext.contextPath}/goods/goodsList',
            dataType : 'json',
            type : 'get',
            success : function(data) {

                var ite="";

               $.each(data,function(i,item){
                   alert(i);
                   ite+="<div class ='wes'  style='padding:8px;height: 30px;width:100px;border:1px solid #96c2f1;background:#eff7ff'>"+(item.name)+"</div><br/>";
               });

                $("#corp-grids").append(ite);

            },
            error : function(data) {
                Messager.show({
                    title:"&nbsp;",
                    content:"更新失败"
                });
            }

        });

    });

</script>
</body>
</html>